import 'package:azlistview/azlistview.dart';

class DoctorModel extends ISuspensionBean {
  String name;
  String tagIndex;
  String namePinyin;
  String id;
  String hospital;
  String avatar;
  bool isSelected;


  DoctorModel({
    this.name,
    this.tagIndex,
    this.namePinyin,
    this.id,
    this.hospital,
    this.avatar,
    this.isSelected
  });

  DoctorModel.fromJson(Map<String, dynamic> json) {
     name = json['name'] == null ? "" : json['name'];
     id = json['id'];
     hospital = json['hospital'];
     avatar = json['avatar'];
     isSelected = json['isSelected'];
  }
     

  Map<String, dynamic> toJson() => {
        'name': name,
        'tagIndex': tagIndex,
        'namePinyin': namePinyin,
        'isShowSuspension': isShowSuspension
      };

  @override
  String getSuspensionTag() => tagIndex;

  @override
  String toString() => "CityBean {" + " \"name\":\"" + name + "\"" + " \"id\":\"" + id + "\"" + '}';
}
